home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig20_38.jar
/
Ch20
/
Fig20_38
/
fig20_38.cpp
Wrap
C/C++ Source or Header
|
1997-10-22
|
444b
|
17 lines
// Fig. 20.38: fig20_38.cpp
// Demonstrating min and max
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
cout << "The minimum of 12 and 7 is: " << min( 12, 7 );
cout << "\nThe maximum of 12 and 7 is: " << max( 12, 7 );
cout << "\nThe minimum of ÆGÆ and ÆZÆ is: "
<< min( ÆGÆ, ÆZÆ );
cout << "\nThe maximum of ÆGÆ and ÆZÆ is: "
<< max( ÆGÆ, ÆZÆ ) << endl;
return 0;
}